<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver ADS1118: ads1118 link driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ADS1118 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ads1118__link__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">ads1118 link driver function<div class="ingroups"><a class="el" href="group__ads1118__driver.html">ads1118 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ads1118 link driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gacb394980f3f9754ca945049187c4ecbd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gacb394980f3f9754ca945049187c4ecbd">DRIVER_ADS1118_LINK_INIT</a>(HANDLE,  STRUCTURE)&#160;&#160;&#160;memset(HANDLE, 0, sizeof(STRUCTURE))</td></tr>
<tr class="memdesc:gacb394980f3f9754ca945049187c4ecbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize ads1118_handle_t structure  <a href="group__ads1118__link__driver.html#gacb394980f3f9754ca945049187c4ecbd">More...</a><br /></td></tr>
<tr class="separator:gacb394980f3f9754ca945049187c4ecbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73414315e8e80c055eebe3f0893b32df"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga73414315e8e80c055eebe3f0893b32df">DRIVER_ADS1118_LINK_SPI_INIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_init = FUC</td></tr>
<tr class="memdesc:ga73414315e8e80c055eebe3f0893b32df"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_init function  <a href="group__ads1118__link__driver.html#ga73414315e8e80c055eebe3f0893b32df">More...</a><br /></td></tr>
<tr class="separator:ga73414315e8e80c055eebe3f0893b32df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67761a9d83991ac0300082d47b64e163"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga67761a9d83991ac0300082d47b64e163">DRIVER_ADS1118_LINK_SPI_DEINIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_deinit = FUC</td></tr>
<tr class="memdesc:ga67761a9d83991ac0300082d47b64e163"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_deinit function  <a href="group__ads1118__link__driver.html#ga67761a9d83991ac0300082d47b64e163">More...</a><br /></td></tr>
<tr class="separator:ga67761a9d83991ac0300082d47b64e163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#ga9ea452e63bb6493a523b560f7c6d8d34">DRIVER_ADS1118_LINK_SPI_TRANSMIT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;spi_transmit = FUC</td></tr>
<tr class="memdesc:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="mdescLeft">&#160;</td><td class="mdescRight">link spi_transmit function  <a href="group__ads1118__link__driver.html#ga9ea452e63bb6493a523b560f7c6d8d34">More...</a><br /></td></tr>
<tr class="separator:ga9ea452e63bb6493a523b560f7c6d8d34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa30464196d9f326f4b643919781121ce"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gaa30464196d9f326f4b643919781121ce">DRIVER_ADS1118_LINK_DELAY_MS</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;delay_ms = FUC</td></tr>
<tr class="memdesc:gaa30464196d9f326f4b643919781121ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">link delay_ms function  <a href="group__ads1118__link__driver.html#gaa30464196d9f326f4b643919781121ce">More...</a><br /></td></tr>
<tr class="separator:gaa30464196d9f326f4b643919781121ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaecf749cb7e7d8a129fa1256579677459"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__link__driver.html#gaecf749cb7e7d8a129fa1256579677459">DRIVER_ADS1118_LINK_DEBUG_PRINT</a>(HANDLE,  FUC)&#160;&#160;&#160;(HANDLE)-&gt;debug_print = FUC</td></tr>
<tr class="memdesc:gaecf749cb7e7d8a129fa1256579677459"><td class="mdescLeft">&#160;</td><td class="mdescRight">link debug_print function  <a href="group__ads1118__link__driver.html#gaecf749cb7e7d8a129fa1256579677459">More...</a><br /></td></tr>
<tr class="separator:gaecf749cb7e7d8a129fa1256579677459"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ads1118 link driver modules </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gaecf749cb7e7d8a129fa1256579677459"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaecf749cb7e7d8a129fa1256579677459">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_DEBUG_PRINT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_DEBUG_PRINT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FUC&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(HANDLE)-&gt;debug_print = FUC</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>link debug_print function </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">FUC</td><td>pointer to a debug_print function address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00206">206</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="gaa30464196d9f326f4b643919781121ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa30464196d9f326f4b643919781121ce">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_DELAY_MS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_DELAY_MS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FUC&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(HANDLE)-&gt;delay_ms = FUC</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>link delay_ms function </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">FUC</td><td>pointer to a delay_ms function address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00198">198</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="gacb394980f3f9754ca945049187c4ecbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacb394980f3f9754ca945049187c4ecbd">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_INIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_INIT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">STRUCTURE&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;memset(HANDLE, 0, sizeof(STRUCTURE))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize ads1118_handle_t structure </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">STRUCTURE</td><td>ads1118_handle_t </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00166">166</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="ga67761a9d83991ac0300082d47b64e163"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga67761a9d83991ac0300082d47b64e163">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_SPI_DEINIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_SPI_DEINIT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FUC&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(HANDLE)-&gt;spi_deinit = FUC</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>link spi_deinit function </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">FUC</td><td>pointer to an spi_deinit function address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00182">182</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="ga73414315e8e80c055eebe3f0893b32df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73414315e8e80c055eebe3f0893b32df">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_SPI_INIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_SPI_INIT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FUC&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(HANDLE)-&gt;spi_init = FUC</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>link spi_init function </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">FUC</td><td>pointer to an spi_init function address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00174">174</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="ga9ea452e63bb6493a523b560f7c6d8d34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9ea452e63bb6493a523b560f7c6d8d34">&#9670;&nbsp;</a></span>DRIVER_ADS1118_LINK_SPI_TRANSMIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DRIVER_ADS1118_LINK_SPI_TRANSMIT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">HANDLE, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">FUC&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(HANDLE)-&gt;spi_transmit = FUC</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>link spi_transmit function </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">HANDLE</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">FUC</td><td>pointer to an spi_transmit function address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00190">190</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
